package com.compass.framework.model

/**
 * Description： 进行中的订单
 * Date:2024/2/1 13:56
 */
data class UnderwayOrder(
    /**
     * {
     * "orderId":"1752899812172529666",
     * "consultResidueNum":100,
     * "consultResidueTime":24,
     * "consultResidueEndTime":1706845257000
     * }
     */
    var orderId: String?,
    var ifReturnVisit: String?,//是否是复诊 1是复诊
    var status: Int, //条数
    var consultResidueNum: Int, //条数
    var consultResidueTime: String,//时长
    var consultResidueEndTime: Long,//节制时间

) {

    fun isReturnVisit(): Boolean {
        ifReturnVisit?.let {
            return it == "1"
        } ?: kotlin.run {
            return false
        }
    }
}
